

class parsear_conf():
    def __init__(self,  file,  dic):
        EOF = 0
        self.dic1 = dic
        while not EOF:
            self.linea=file.readline()
            if not self.linea:
                EOF = 1
            else:
                if self.linea[0] != '#' or self.linea[0] != ' ':
                    self.parsear(self.linea,  self.dic1)
        dic = self.dic1
    
    def parsear(self,  linea,  dic):
        linea = linea.split()
        dic[linea[0]] = linea[1]

class create_conf():
    def __init__(self,  file):
        line = "Local_IP: "
        line = line + raw_input("Indique la IP local: ") + "\n"
        file.write(line)
        line = "Local_Port: "
        line = line + raw_input("Indique el puerto local: ") + "\n"
        file.write(line)
        line = "Local_Port2: "
        line = line + raw_input("Indique el puerto local secundario: ") + "\n"
        file.write(line)
        line = "IP_Data_Base: "
        line = line + raw_input("Indique la IP donde se encuentran las Bases de Datos: ") + "\n"
        file.write(line)
        
